package cn.dakaqi.utils.file;

import java.io.Serializable;

public class fileUploadStatus implements  Serializable{
	
	
	
	/**
	 * 状态异常 code
	 */
	public static final int CODE_ERROR=1;
	
	
	public static final int CODE_SUCCESS=0;
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 已上传字节
	 */
	private long pBytesRead = 0L;
	
	/**
	 * 文件总字节
	 */
	private long pContentLength = 0L;
	
	/**
	 * 文件序号
	 */
	private int pItems;
	
	
	/**
	 * 文件访问虚拟路径 比如：http://c.lifeyoyo.com/images/20136987_s.jpg
	 */
	private String fileUrl;
	
	
	/**
	 * 状态编号 0 正常， 1 有异常 默认0
	 */
	private int code=0;
	
	
	/**
	 * 状态异常信息
	 */
	private String errormsg;
	
	
	

	
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getErrormsg() {
		return errormsg;
	}
	public void setErrormsg(String errormsg) {
		this.errormsg = errormsg;
	}
	public long getpBytesRead() {
		return pBytesRead;
	}
	public void setpBytesRead(long pBytesRead) {
		this.pBytesRead = pBytesRead;
	}
	public long getpContentLength() {
		return pContentLength;
	}
	public void setpContentLength(long pContentLength) {
		this.pContentLength = pContentLength;
	}
	public int getpItems() {
		return pItems;
	}
	public void setpItems(int pItems) {
		this.pItems = pItems;
	}
	public String getFileUrl() {
		return fileUrl;
	}
	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}
	public fileUploadStatus(){
		pBytesRead = 0L;
		pContentLength = 0L;
	}
	public long getPBytesRead() {
		return pBytesRead;
	}
	public void setPBytesRead(long bytesRead) {
		pBytesRead = bytesRead;
	}
	public long getPContentLength() {
		return pContentLength;
	}
	public void setPContentLength(long contentLength) {
		pContentLength = contentLength;
	}
	public int getPItems() {
		return pItems;
	}
	public void setPItems(int items) {
		pItems = items;
	}
}
